import { Layout } from "antd";

import { ContentScreen } from "./Content";
import { FooterScreen } from "./Footer";
import { HeaderScreen } from "./Header";
import { SiderScreen } from "./Sider";
import { useInitData } from "./util";

export const HomeView = () => {
  // 初始化数据
  useInitData()

  return (
    <Layout>
      <HeaderScreen></HeaderScreen>

      <Layout className="main">
        <ContentScreen></ContentScreen>
        <SiderScreen></SiderScreen>
      </Layout>

      <FooterScreen></FooterScreen>
    </Layout>
  );
};
